package com.zygh.lz.service.impl;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.zygh.lz.dao.SignCronMapper;
import com.zygh.lz.entity.signfile.SignCron;
import com.zygh.lz.service.SignCronService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author lee
 */
@Service
public class SignCronServiceImpl implements SignCronService {
    @Resource
    private SignCronMapper signCronMapper;
    @Override
    public SignCron findOne(Integer state){
        SignCron signCron = signCronMapper.selectOne(Wrappers.<SignCron>lambdaQuery().eq(SignCron::getState, state));
        return signCron;
    }
}
